﻿using System;
using System.Collections.Generic;
using IdeaBlade.Validation;

namespace CoProjectDF.Models.Login
{

    /// <summary>
    /// Exception thrown for registration failures.
    /// </summary>
    public class RegistrationException : Exception
    {

        public RegistrationException(CreateUserResult result)
            : base()
        {
            Status = result.Status;
            ValidationErrors = result.ValidationErrors;
        }

        public CreateUserStatus Status
        {
            get;
            private set;
        }

        public List<VerifierResult> ValidationErrors
        {
            get;
            private set;
        }

    }
}
